gdkgl: Check for GLsync before using it
authorBenjamin Otte <otte@redhat.com>
Sat, 1 Jul 2023 20:46:47 +0000 (22:46 +0200)
committerSimon McVittie <smcv@debian.org>
Sun, 10 Sep 2023 14:51:04 +0000 (15:51 +0100)
commit50a67e89ea67f3cc498c0636fd97c604314e8dd5
tree9f92c38aa2fb0cea1b425355b3750e4bf5ab7e0c
parentcb91b4e47ce539e46f7236b78a6bd01ed9ba9bf4
gdkgl: Check for GLsync before using it

Copy what we do in GTK4: Check for GL >= 3.2 or GLES >= 3.0 or the
GL_ARB_sync extension.
Then store that info for a (private) gdk_gl_context_has_sync()
function.
And then check that function before using GLsync objects as introduced
by commit 9811485990b.

Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/5749
Forwarded: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/6162
Origin: 3.24.39, commit:cf7decae1a1a2af825caca8da018ce09cd9ce31a

Gbp-Pq: Name gdkgl-Check-for-GLsync-before-using-it.patch
gdk/gdkgl.c
gdk/gdkglcontext.c
gdk/gdkglcontextprivate.h